package com.ikingtech.platform.service.system.user.service;

import com.ikingtech.framework.sdk.tenant.api.TenantUserApi;
import com.ikingtech.platform.service.system.user.service.repository.UserTenantRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Administrator
 */
@Service
@RequiredArgsConstructor
public class TenantUserService implements TenantUserApi {

    private final UserTenantRepository userTenantService;

    @Override
    public List<String> loadCodeByUserId(String userId) {
        return this.userTenantService.listTenantCodeByUserId(userId);
    }
}
